#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File   : b_object_program_meta.py
# @Email  : xuexia_xu@feidee.com
# @Time   : 2024/4/8 13:57
# @Desc   : 使用元类
class Hello:
    # """
    # >>> h = Hello()
    # >>> h.say_hello()
    # Hello world
    # >>> print(type(Hello))
    # <class 'type'>
    # >>> print(type(h))
    # <class 'b_object_program_meta.Hello'>
    # >>>
    # """

    def say_hello(self, name='world'):
        print("Hello %s" % name)


# if __name__ == "__main__":
#     h = Hello()
#     h.say_hello()
#     print(type(Hello))
#     print(type(h))
